class CreateBillingOrders < ActiveRecord::Migration
  def self.up
    create_table :billing_orders do |t|
      t.integer :user_id
      t.string :status
      t.string :action
      t.string :ref_operation_id
      t.text :note
      t.string :ip_address
      t.integer :account_id
      t.float :amount
      t.float :amount_tax
      t.float :amount_shipping
      t.float :amount_total
      t.date :created_at
      t.date :updated_at

      t.timestamps
    end
  end

  def self.down
    drop_table :billing_orders
  end
end
